home *** CD-ROM | disk | FTP | other *** search
- Path: oly.olympic.net!poke
- From: poke@oly.olympic.net (Charlie Chaplin )
- Newsgroups: comp.lang.c
- Subject: Spawn and exit...
- Date: 5 Jan 1996 23:35:08 GMT
- Organization: Olympic Net, L.L.C.
- Message-ID: <4ckcjc$e84@oly.olympic.net>
- NNTP-Posting-Host: oly.olympic.net
- X-Newsreader: TIN [version 1.2 PL2]
-
- I am having trouble writing a program that spwans my windows 3.11 then
- kills itself. I realize that windows 3.11 would be a child process. The
- parent process takes up so much memory that it slows my windows down too
- much. The program that I wrote was a result of my father's complaints.
- Whenever I get into debugging the computer I rem out the win statement in
- the autoexec.bat, because I tend to reboot the computer a lot when I'm
- debugging. This is a very long and tedious process if windows has to load
- up every time(yes I know about F5, read on and you will understand). The
- problem is, I forget to unrem the win statement, and my
- semi-literate father can't figure out how to get word 6.0 working(Yes
- I've told hime a million times to just type WIN), and he starts
- hollering at me. If I hit F5 during reboot I don't get the path
- statement the memory managers and the config.sys, which are necessary for
- what I'm doing. So I wrote a program called win.exe and I placed it in my
- root directory. WHen the autoexec.bat gets down to the win statement it
- executes the local win.exe file. win.exe pauses the computer for about 4
- seconds and then spawns windows 3.11. If any key is pressed during the 4
- second pause the program exits and I am left with a DOS prompt. I just
- need help getting my program to kill itself if it ends up spawning
- windows 3.11, win.exe takes up almost 80K of memory when it's resident. I
- have also tried the system() function, it does the same thing.
-
- Please e-mail me your response, I don't frequent this group much. Thanks...
-
- --
- ---------------------------------------------------------------------------
- | \\\\\ |Me wonders if ASCII self-portraits are even reasonably accurate?|
- | . . ----------------------------------------------------------------
- | > |Favorite quote I once saw: |
- | = | "You should be arrested for posession of stupidity with |
- | "Poke" | intent to distribute..." |
- ---------- ----------------------------------------------------------------
- | Store it in a cool dry place... |
- | -Travelling Wilburys |
- | |
- | E-Mail: 'r' or poke@olympic.net or poke@oz.net |
- ---------------------------------------------------------------------------
-